﻿namespace WeWork.Model
{
    /// <summary>
    /// 链接
    /// </summary>
    public class ChatLink : MsgChatRoomBase
    {
        /*
        {
            "msgid":"11788441727514772650_1603875624",
            "action":"send",
            "from":"kenshin",
            "tolist":["0000726"],
            "roomid":"",
            "msgtime":1603875624476,
            "msgtype":"link",
            "link":{
                "title":"邀请你加入群聊",
                "description":"技术支持群，进入可查看详情",
                "link_url":"https://work.weixin.qq.com/wework_admin/external_room/join/exceed?vcode=xxx",
                "image_url":"https://wework.qpic.cn/wwpic/xxx/0"
            }
        }
        */
        /// <summary>
        /// 消息内容
        /// </summary>
        public LinkInfo link { set; get; }
    }

    public class LinkInfo
    {
        /// <summary>
        /// 消息标题。String类型
        /// </summary>
        public string title { set; get; }
        /// <summary>
        /// 消息描述。String类型
        /// </summary>
        public string description { set; get; }
        /// <summary>
        /// 链接url地址。String类型
        /// </summary>
        public string link_url { set; get; }
        /// <summary>
        /// 链接图片url。String类型
        /// </summary>
        public string image_url { set; get; }
    }
}
